<template>
    <div class='deliveryTrack'>
        <el-dialog title="物流跟踪" visible @close="$emit('close')" width="1200px" append-to-body :close-on-click-modal="false">
            <div class="block">
                <div class="radio" style="margin-bottom: 30px;">
                    排序：
                    <el-radio-group v-model="reverse">
                        <el-radio :label="false">正序</el-radio>
                        <el-radio :label="true">倒序</el-radio>
                    </el-radio-group>
                </div>
                <!-- <div v-if="activities.length = 0"><span>还没有生成物流跟踪信息</span></div> -->

                <el-timeline :reverse="reverse">
                    <el-timeline-item v-for="(activity, index) in activities" :key="index" :timestamp="activity.AcceptTime">
                        {{ activity.AcceptStation }}
                    </el-timeline-item>
                </el-timeline>
            </div>

        </el-dialog>
    </div>
</template>
<script>
import throttle from 'lodash.throttle'
import { wuliuTracking } from "@/api/order/goodsOrder.js"
export default {
    name: 'confirmPay',
    props: {
        orderNo: {
            type: String,
        }
    },
    components: {

    },
    data() {
        return {
            reverse: false,
            activities:[],
        }
    },
    created() {
        this.getTrackingInfo()
    },
    methods: {

        getTrackingInfo() {
            wuliuTracking({ order_no: this.orderNo }).then(res => {
                this.activities = res.data

            })
        },
        close() {
            this.$emit('close');
        },

    },
}

</script>
<style scoped lang='scss'>
/deep/.avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100px !important;
    height: 100px !important;
}

.avatar-uploader .el-upload:hover {
    border-color: #409eff;
}

.avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 100px !important;
    height: 100px !important;
    line-height: 100px !important;
    /* text-align: center;
    display: block !important; */
}

.avatar {
    width: 100px;
    height: 100px;
    display: block;
}
</style>